﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using CinemaDbLib;
using ModelLayer;

// NOTE: You can use the "Rename" command on the "Refactor" menu to change the class name "RoomCtrl" in code, svc and config file together.
public class RoomCtrl : IRoomCtrl
{
	private RoomDB roomDB;

	public RoomCtrl()
	{
		roomDB = new RoomDB();
	}

	public Room[] getRooms()
	{
		return roomDB.getRooms().ToArray();
	}

	public Room getRoomById(int id)
	{
		return roomDB.getRoomById(id);
	}
}
